package bosch;

import java.io.File;

public class Main {

	public static void main(String[] args) {
		String currentPath = System.getProperty("user.dir");
		String scriptPath = currentPath + "/test.sql";
		File directory = new File(currentPath);
		File script = new File(scriptPath);
		try
		{
			Utils.createTablesFromCSVFiles(directory);
			Utils.DisplayResults(Utils.RunSQLScriptOnDB(script), "Results from executing test.sql");
		}catch (Exception e)
		{
			System.err.println( e.getClass().getName() + ": " + e.getMessage() );
			System.exit(-1);
		}
					
	}
}
